package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.LatentClient;
import cn.wolfcode.crm.query.LatentClientQueryObject;

import java.util.List;

public interface LatentClientMapper {
    int deleteByPrimaryKey(Long id);

    int insert(LatentClient record);

    LatentClient selectByPrimaryKey(Long id);

    List<LatentClient> listAll();

    int updateByPrimaryKey(LatentClient record);

    int queryForCount(LatentClientQueryObject var1);

    List<LatentClient> queryForList(LatentClientQueryObject var1);

    void changeState(Long var1);

    List<LatentClient> selectClientByStatus(LatentClientQueryObject var1);

    int resourceQueryForCount(LatentClientQueryObject var1);

    int stateQueryForCount(LatentClientQueryObject var1);

    List<LatentClient> selectStateClientByStatus(LatentClientQueryObject var1);

    void changeStateTransfer(Long var1);

    void changeState2Latent(Long var1);

    void changeClient(LatentClient var1);

    void change2State(LatentClient var1);

    void changePlan(LatentClient var1);


    //根据状态查用户
    List<LatentClient> selectByStatus(int status);

}